package com.example.kotlinlearndemo.kotlin

fun main(){
    Parent1().setup()
}
open class Parent1 {

    private lateinit var subject: Parent1

    fun setup() {
        subject = Parent1()
        println("lateinit isInitialized: "+subject::subject.isInitialized)

        subject.subject = Parent1()
        println("lateinit isInitialized: "+subject::subject.isInitialized)
    }

}